#ifndef __LUAIFACESTRUCTS_H__
#define __LUAIFACESTRUCTS_H__

#include "../sock.h"

#define LUAIFACEPORTI 6236
#define LUAIFACEPORTO 6237

#define ECV_HEADER 1
#define ECV_DATA 2

#define ECVLIB_ASK 1
#define ECVLIB_WAIT 2

#define ECV_DATAREQUEST 1
#define ECV_DATAREPLY 2

#define ECV_MAGICK 4

typedef struct ecv_inetp
{
  int name;
  char * data;
} ecv_inetp;

typedef struct ecv_luaiface
{
  sockparams * params;
  int readsize;
  int offset;
  int state;
} ecv_luaiface;

typedef struct ecv_lua
{
  ecv_luaiface * ifaceout;
} ecv_lua; 

#endif
